home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Development Tools & Languages / Macintosh Common Lisp Related / interfaces / PInterface Translator / PInterfaces / OSEvents.p < prev    next >
Encoding:
Text File  |  1993-09-16  |  1.3 KB  |  55 lines  |  [TEXT/MPS ]

  1. {
  2. Created: Sunday, January 6, 1991 at 10:51 PM
  3.     OSEvents.p
  4.     Pascal Interface to the Macintosh Libraries
  5.  
  6.         Copyright Apple Computer, Inc.    1985-1990
  7.         All rights reserved
  8. }
  9.  
  10.  
  11. {$IFC UNDEFINED UsingIncludes}
  12. {$SETC UsingIncludes := 0}
  13. {$ENDC}
  14.  
  15. {$IFC NOT UsingIncludes}
  16.     UNIT OSEvents;
  17.     INTERFACE
  18. {$ENDC}
  19.  
  20. {$IFC UNDEFINED UsingOSEvents}
  21. {$SETC UsingOSEvents := 1}
  22.  
  23. {$I+}
  24. {$SETC OSEventsIncludes := UsingIncludes}
  25. {$SETC UsingIncludes := 1}
  26. {$IFC UNDEFINED UsingTypes}
  27. {$I $$Shell(PInterfaces)Types.p}
  28. {$ENDC}
  29. {$IFC UNDEFINED UsingEvents}
  30. {$I $$Shell(PInterfaces)Events.p}
  31. {$ENDC}
  32. {$IFC UNDEFINED UsingOSUtils}
  33. {$I $$Shell(PInterfaces)OSUtils.p}
  34. {$ENDC}
  35. {$SETC UsingIncludes := OSEventsIncludes}
  36.  
  37. FUNCTION PostEvent(eventNum: INTEGER;eventMsg: LONGINT): OSErr;
  38. FUNCTION PPostEvent(eventCode: INTEGER;eventMsg: LONGINT;VAR qEl: EvQElPtr): OSErr;
  39. FUNCTION OSEventAvail(mask: INTEGER;VAR theEvent: EventRecord): BOOLEAN;
  40. FUNCTION GetOSEvent(mask: INTEGER;VAR theEvent: EventRecord): BOOLEAN;
  41. PROCEDURE FlushEvents(whichMask: INTEGER;stopMask: INTEGER);
  42.     INLINE $201F,$A032;
  43. PROCEDURE SetEventMask(theMask: INTEGER);
  44.     INLINE $31DF,$0144;
  45. FUNCTION GetEvQHdr: QHdrPtr;
  46.     INLINE $2EBC,$0000,$014A;
  47.  
  48.  
  49. {$ENDC}    { UsingOSEvents }
  50.  
  51. {$IFC NOT UsingIncludes}
  52.     END.
  53. {$ENDC}
  54.  
  55.